import 'package:flutter_massage/pages/model/bean.dart';
import 'package:flutter_massage/pages/my/address/address_bean.dart';

class OrderBean {
  String? orderId;
  String? time;
  String? desc;
  String? userId;
  int? timestamp;
  AddressBean? addressBean;
  TechnicianBean? technicianBean;
  ProjectBean? projectBean;

  OrderBean({
    this.orderId,
    this.userId,
    this.time,
    this.desc,
    this.addressBean,
    this.technicianBean,
    this.projectBean,
    this.timestamp,
  });

  OrderBean.fromJson(dynamic json) {
    orderId = json['order_id'];
    time = json['time'];
    desc = json['desc'];
    userId = json['user_id'];
    timestamp = json['timestamp'];
    addressBean = json['address'] != null ? AddressBean.fromJson(json['address']) : null;
    technicianBean = json['technician'] != null ? TechnicianBean.fromJson(json['technician']) : null;
    projectBean = json['project'] != null ? ProjectBean.fromJson(json['project']) : null;
  }
}
